package com.qiaofang.entity.enums;

/**
 * @author qi.liu
 * @date: 2021/1/13 14:36
 */
public enum WxMsgStatusEnum {

    NO("0", "该人员未开启接受微信消息"),
    YES("1", "该人员开启了接受微信消息");

    public static String getDescByNo(String no) {
        for (WxMsgStatusEnum wxMsgStatusEnum : WxMsgStatusEnum.values()) {
            if(no.equals(wxMsgStatusEnum.getNo())) {
                return wxMsgStatusEnum.getDesc();
            }
        }
        return null;
    }

    WxMsgStatusEnum(String no, String desc) {
        this.no = no;
        this.desc = desc;
    }

    private String no;

    private String desc;

    public String getNo() {
        return no;
    }

    public String getDesc() {
        return desc;
    }
}
